package com.hw.protocol.tool.model;

import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author : lihy
 * @date : 2024/3/14 9:37
 * description:
 */

public class History implements Serializable {

    private static final long serialVersionUID = 4948971789229576045L;

    public History(String time, String in, String result, String data) {
        this.time = new SimpleStringProperty(time);
        this.in = new SimpleStringProperty(in);
        this.result = new SimpleStringProperty(result);
        this.data = new SimpleStringProperty(data);
    }

    /**
     * 解析时间
     */
    private SimpleStringProperty time;

    /**
     * 解析指令
     */
    private SimpleStringProperty in;

    /**
     * 解析结果
     */
    private SimpleStringProperty result;

    /**
     * 解析数据
     */
    private SimpleStringProperty data;

    public String getTime() {
        return time.get();
    }

    public String getIn() {
        return in.get();
    }

    public String getResult() {
        return result.get();
    }

    public String getData() {
        return data.get();
    }

}
